import {TravelModel} from "../../../../models/travel";

const travelModel=new TravelModel()
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    searchList:Array
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    changeCity:function (event) {
      const city=event.currentTarget.dataset.city;
      travelModel.setSelectedCity(city);
      wx.navigateBack()
    }
  }
})
